﻿@model BskLeague.Models.SeasonTeamPlayer

@{
    ViewBag.Title = "EditSTP";
}

<h3>Edycja wpisu</h3>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)


        @Html.HiddenFor(model => model.SeasonTeamPlayerId)

        <div class="editor-label">
            @Html.LabelFor(model => model.SeasonId)
        </div>
        <div class="editor-field">
            @Html.DropDownList("SeasonId", ViewBag.Seasons as List<SelectListItem>)
            @Html.ValidationMessageFor(model => model.SeasonId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TeamId)
        </div>
        <div class="editor-field">
            @Html.DropDownList("TeamId", ViewBag.Teams as List<SelectListItem>)
            @Html.ValidationMessageFor(model => model.TeamId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerId)
        </div>
        <div class="editor-field">
            @Html.DropDownList("PlayerId", ViewBag.Players as List<SelectListItem>)
            @Html.ValidationMessageFor(model => model.PlayerId)
        </div>

        <p>
            <input type="submit" value="Zapisz zmiany" />
        </p>
}

<div>
    @Html.ActionLink("Powrót do listy", "ManageSTP")
</div>
